<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!-- required to display the correct page - do not modify -->
	<xsl:param name="guid" />
	<xsl:param name="currentUrl" />
	<!-- end required params -->

	<xsl:param name="showNavigation" select="0" />
	<!-- set this to 1 if you want the navigation template to be displayed -->

	<xsl:template name="style">
		<![CDATA[
		<style>
			/* Add your style information here */
body
{
color:blue;
font-family:verdana;arial;
}
			/* End style information */
		</style>
		]]>
	</xsl:template>

	<xsl:template match="/">
		<html>
			<body>
				<head>
					<meta name="verify-v1" content="KbbvHijn15o2ym4gy3W0rVP1+ljMhgYg7OG4vci37+c=" />
					<title>tanash * so you don't have to</title>
					<link href="App_Themes/tanash/retro.css" rel="stylesheet" type="text/css" />
					<xsl:call-template name="style" />
				</head>
				<xsl:if test="$showNavigation=1 and /website/navigation">
					<xsl:apply-templates select="/website/navigation"></xsl:apply-templates>
				</xsl:if>
				<div id="header">
					<h1>tanash</h1>
					<label id="tagline">so you don't have to</label>
				</div>
				<div id="content">
					<!-- The web page content is inserted here -->
					<xsl:value-of select="/website/webpage[($guid='' and @homepage='1') or ($guid=@guid)]/node()"/>
					<!-- End web page content -->
				</div>
				<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
				</script>
				<script type="text/javascript">
					_uacct = "UA-1910282-1";
					urchinTracker();
				</script>
			</body>
		</html>
	</xsl:template>

	<!-- 
		Navigation generation
		No need to mess with this
		Style your navigation using the stylesheet at the top of this template
	-->
	<xsl:template match="/website/navigation">
		<xsl:element name="li">
			<xsl:element name="h2">
				<xsl:element name="a">
					<xsl:attribute name="class">
						root<xsl:if test="string($currentUrl)=string(@navigateURL)"> selected</xsl:if>
					</xsl:attribute>
					<xsl:attribute name="href">
						<xsl:value-of select="@navigateURL"/>
					</xsl:attribute>
					<xsl:value-of select="text()"/>
				</xsl:element>
				<xsl:if test="./navigation/node()">
					<xsl:element name="ul">
						<xsl:apply-templates select="./navigation">
						</xsl:apply-templates>
					</xsl:element>
				</xsl:if>
			</xsl:element>
		</xsl:element>
	</xsl:template>

	<xsl:template match="navigation" name="menuBranch">
		<xsl:element name="li">
			<xsl:element name="a">
				<xsl:if test="string($currentUrl)=string(@navigateURL)">
					<xsl:attribute name="class">selected</xsl:attribute>
				</xsl:if>
				<xsl:attribute name="href">
					<xsl:value-of select="@navigateURL"/>
				</xsl:attribute>
				<xsl:value-of select="text()"/>
			</xsl:element>
			<xsl:if test="./navigation/node()">
				<xsl:element name="ul">
					<xsl:apply-templates select="./navigation">
					</xsl:apply-templates>
				</xsl:element>
			</xsl:if>
		</xsl:element>
	</xsl:template>
	<!-- end navigation structure -->
</xsl:stylesheet>

